<div class="page-address w clearfix">
  <div class="user-tips">您能采购的商品以您所在地区的物流营销中心实际库存为准。</div>
  <div ng-include="'catalog/view/theme/bhz/pc/modules/includes/usernav.html'" ng-controller="UserNavCtrl" class="bhz-user-nav-wrap"></div>
  <div class="address-page-wrap">
    <div class="address-list-title">我的地址</div>
    <div class="address-list-content">
      <div class="addr-list-wrap">
        <ul class="addr-list">
          <li class="addr-item" ng-repeat="(id, address) in addressList" id="id" ng-click="onAddressClick(id);" ng-if="addressList" ng-class="{addressSelected:address.selected}">
            <div class="major-info">
              <span class="name">{{address.fullname}}</span>
              <span class="mobile">{{address.shipping_telephone}}</span>
              <span class="defaultAddr" ng-if="address.is_default=='1'"><i class="icon icon-location"></i><span>默认地址</span></span>
              </span>
            </div>
            <div class="addr">
              <!-- <span class="postCode" ng-if="address.postcode">{{address.postcode}}</span> -->
              <span class="p">{{address.country}},</span>
              <span class="c">{{address.zone}},</span>
              <span class="q">{{address.city}}</span>
              <span class="detailsAddr">{{address.address}}</span>
            </div>
            <div class="actions">
              <a class="action edit" href="javascript:void(0);" ng-click="updateAddress(id);">编辑</a>
              <span class="separator"></span>
              <a class="action delete" href="javascript:void(0);" ng-click="deleteAddress(id);">删除</a>
            </div>
          </li>
        </ul>
      </div>
      <div class="btn-wrap">
        <a href="javascript:void(0);" class="btn btn-submit" ng-click="updateAddress();">添加新地址</a>
      </div>
    </div>
  </div>
</div>

<script type="text/ng-template" id="confirmDeleteDialog.html">
  <div class="dialog confirm-dialog" ng-click="$event.stopPropagation();">
    <p class="title ngdialog-text-center">确认删除此地址？</p>
    <div class="ngdialog-buttons">
      <button type="button" class="ngdialog-button ngdialog-button-secondary" ng-click="closeThisDialog(0);$event.stopPropagation()">取消</button>
      <button type="button" class="ngdialog-button ngdialog-button-primary" ng-click="confirm(1);$event.stopPropagation()">确认</button>
    </div>
  </div>
</script>
